package com.woniuxy.center.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 个人中心收藏表
 * </p>
 *
 * @author 邓粟天，高君诚
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("PERSON_COLLECTIONS")
@ApiModel(value="PersonCollections对象", description="个人中心收藏表")
@AllArgsConstructor
@KeySequence("PERSON_COLLECTION")
public class PersonCollections implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "个人中心收藏编号")
    @TableId(value = "COLLECTION_PERSON_ID",type = IdType.INPUT)
    private Integer collectionPersonId;

    @ApiModelProperty(value = "用户ID")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "收藏商家的ID")
    @TableField("COLLECTIONSHOP_ID")
    private Integer collectionshopId;

    @ApiModelProperty(value = "收藏社区动态的ID")
    @TableField("COLLECTION_ID")
    private Integer collectionId;

    @ApiModelProperty(value = "收藏二手商品的ID")
    @TableField("COLLECTS_ID")
    private Integer collectsId;

    @ApiModelProperty(value = "数据插入时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "软删除. 默认为0,删除为1")
    @TableField("FLAG")
    private Integer flag;


}
